/* ---------------------------------------------------------------------------------------------
 *
 *            Capital Alliance Software Confidential Proprietary
 *            (c) Copyright CAS 201{x}, All Rights Reserved
 *                          www.pekall.com
 *
 * ----------------------------------------------------------------------------------------------
 */

package com.android.music.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

import com.android.music.MusicApplication;
import com.android.music.download.LrcDownLoad;
import com.android.music.model.Music;

public class DownLoadeService extends Service {
    private LrcDownLoad lrcDownLoad;

    @Override
    public void onCreate() {
        super.onCreate();
        lrcDownLoad = new LrcDownLoad();
    }

    public void onStart(Intent intent, int startId) {
        super.onStart(intent, startId);
        Music music = MusicApplication.getInstance().getPlayingMusic();
        lrcDownLoad.getAndSaveLrc(this, music);
    }

    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

}
